home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / usioctl.h.z / usioctl.h
C/C++ Source or Header  |  1992-04-03  |  1KB  |  43 lines

  1. /**************************************************************************
  2.  *                                      *
  3.  *          Copyright (C) 1990-1991 Silicon Graphics, Inc.          *
  4.  *                                      *
  5.  *  These coded instructions, statements, and computer programs  contain  *
  6.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  7.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  8.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  9.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  10.  *                                      *
  11.  **************************************************************************/
  12. /*
  13.  * sys/usioctl.h -- structures and defines for poll-able semaphores
  14.  */
  15. #ifndef __USIOCTL_H__
  16. #define __USIOCTL_H__
  17.  
  18. #ident "$Revision: 1.5 $"
  19.  
  20. #include "sys/poll.h"
  21.  
  22. #define USEMADEV    "/dev/usema"
  23. #define USEMACLNDEV    "/dev/usemaclone"
  24. /*
  25.  * Ioctl commands.
  26.  */
  27. #define UIOC    ('u' << 16 | 's' << 8)
  28.  
  29. #define UIOCATTACHSEMA    (UIOC|2)    /* attach to exising sema */
  30. #define UIOCBLOCK    (UIOC|3)    /* block, sync, intr */
  31. #define UIOCABLOCK    (UIOC|4)    /* block, async */
  32. #define UIOCNOIBLOCK    (UIOC|5)    /* block, sync, intr */
  33. #define UIOCUNBLOCK    (UIOC|6)    /* unblock sync */
  34. #define UIOCAUNBLOCK    (UIOC|7)    /* unblock async */
  35. #define UIOCINIT    (UIOC|8)    /* init semaphore async */
  36.  
  37. typedef struct usattach_s {
  38.     dev_t    us_dev;        /* attach dev */
  39.     void    *us_handle;    /* user level semaphore handle */
  40. } usattach_t;
  41.  
  42. #endif
  43.